﻿using System.Xml;
using Jinjia.Approve.Model.VM.JJFlow;

namespace Jinjia.Approve.IService.JJFlow.BPM
{
    public interface IJJFlowBpmXMLParserService
    {
        /// <summary>
        /// 将xml转换为节点和步骤转换为模型
        /// </summary>
        /// <param name="bpmXml"></param>
        /// <returns></returns>
        JJFlowBPMProcessVM ParseXmlToModel(string bpmXml);

        /// <summary>
        /// 审批节点替换审批人
        /// </summary>
        /// <param name="xml"></param>
        /// <param name="handoverUserId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        XmlDocument BPMReplaceUserIdList(string xml, string handoverUserId, string userId);
    }
}